<!-- Modal -->
<div id="frm-post-popup" class="white-popup" style="max-width: 745px">
    <div class="weibo_post_box">
        <h2>上传封面</h2>
        <div class="aline" style="margin-bottom: 10px"></div>
        <div class="row">
            <div class="col-xs-12">
                {:hook('upload_crop')}
            </div>
        </div>
        <button title="Close (Esc)" type="button" class="mfp-close" style="color: #333;">×</button>
    </div>
</div>
        <script>

            var upload_crop ={
                cropSuccess:function(a){
                    $('.upload_cover').find('div').html('<img style="width: 100%" id="show_picture" src="' + a.info.path + '"/>')
                    $('input[name=cover_id]').val(a.info.id);
                }
            }

        </script>

<!-- /.modal -->

